package com.sky.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.SetmealDTO;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.result.PageResult;
import com.sky.vo.DishItemVO;
import com.sky.vo.SetmealVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface SetmealService extends IService<Setmeal> {
    public PageResult getByPage(SetmealPageQueryDTO setmealPageQueryDTO);
    @Transactional
    public void addSetmealInfo(SetmealDTO setmealDTO);
    public void updateSetmealStatus(Integer status,Long id);
    public SetmealVO getSetmealById(Long id);
    @Transactional
    public void modifySetmealInfo(SetmealVO setmealVO);

    public void deleteSetmealByIds(Long[] ids);

    public List<Setmeal> getSetmealListById(Long categoryId);

    public List<DishItemVO> getDishesByCategoryId(Long id);
}
